//
//  ArticleShareSheet.h
//  Doctor
//
//  Created by 陈应平 on 24/11/2016.
//  Copyright © 2016 YX. All rights reserved.
//  该view 自定制分享页面

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger ,YXShareType) {
    WechatSessionType,
    WechatTimeLineType,
    QQType
};
@interface YXSocialSnsService : UIView


@property (copy, nonatomic) NSString *shareLink;
@property (copy, nonatomic) NSString *shareDescText;
@property (copy, nonatomic) UIImage *shareImage;
@property (copy, nonatomic) NSString *shareTitleText;
@property (strong, nonatomic) UIViewController *controller;

- (instancetype)initWithShareLink:(NSString *)shareLink shareTitleText:(NSString *)shareTitleText shareDescText:(NSString *)shareDescText shareImage:(id )shareImage controller:(UIViewController *)controller shareSuccess:(void(^)(YXShareType type))success;

+ (void)shareSheetWithLink:(NSString *)shareLink shareTitleText:(NSString *)shareTitleText shareDescText:(NSString *)shareDescText shareImage:(id )shareImage shareSuccess:(void(^)(YXShareType type))success;
@end
